﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutomaticScrewLocking.domain.modbus.comm.model.entity
{
    /// <summary>
    /// PLC 连接参数
    /// </summary>
    public class PlcParam
    {
        public PlcParam(string plcIp,int plcPort)
        {
            this.plcIp = plcIp;
            this.plcPort = plcPort;
        }

        /// <summary>
        /// ModbusTcp的Ip地址
        /// </summary>
        public string plcIp { get; set; }

        /// <summary>
        /// ModbusTcp的端口号，默认502
        /// </summary>
        public int plcPort { get; set; } = 502;

        /// <summary>
        /// 从站地址
        /// </summary>
        public byte slaveAddress { get; set; } = 1;
    }
}
